from Game import Game

class DingZi(Game):


    def __init__(self):
        self.quanList=["钉子","木头","榔头"]
        self.result["游戏"]="木匠铺"

    def getName(self):
        return "榔头木头钉"

    def printWelCome(self):
        print("欢迎来到木匠铺")

    def caiJueJieGuo(self):
        if self.quanComputer == self.quanPlayer:
            self.result["结果"] = "平局"
        elif self.quanComputer == "钉子" and self.quanPlayer == "木头" or self.quanComputer == "木头" and self.quanPlayer == "榔头" or self.quanComputer == "榔头" and self.quanPlayer == "钉子":
            self.result["结果"] = "电脑胜"
            print("嘿嘿嘿，Siri胜")
        else:
            self.result["结果"] = "玩家胜"
            print("恭喜主人获胜")
        print(self.result)